   <div class="fr">
   <{if $isnews}>
     <ul class="categories_list clearfix">
          <{function name=newscategories level=0}>
          <{foreach from=$data item=entry}>
          <li><a href="<{spUrl c=news a=index alias=$entry.alias}>" class="sub_link<{if $entry.categories_id eq $categories_id}> selected<{/if}>"><{if $entry.image neq ''}><img src="<{$smarty.const.WEBDIR}>upload/<{$entry.image}>"/><{/if}> <{$entry.detail.categories_name}></a>
          <{if isset($entry.child)}>         
            <ul class="son"><{call name=newscategories data=$entry.child level=$level}></ul>
          <{/if}>
          </li>
          <{/foreach}>
          <{/function}>
          <{call name=newscategories data=$newscategoriesright}>
     </ul>
     <form action="<{spUrl a=news c=search}>" method="get" class="news_search">
          <input type="text" name="alias" value="Enter keyword here" onfocus="if (this.value == 'Enter keyword here') {this.value = '';}" onblur="if (this.value == '') {this.value = 'Enter keyword here';}" class="input_text" />
          <input type="submit" class="submit_news" value="GO"/>
     </form>
     <div class="sidebar_box">
       <h3>Recent Posts</h3>
       <ul>
          <{GetNewsList c=news a=view cid=$newscategories_id num=$smarty.const.RIGHTNEWS jg=array('<li>','</li>')}>
       </ul>
     </div>
     <div class="sidebar_box">
       <h3>Recent Comments</h3>
       <ul>
          <{GetCommentNewsList c=news a=view num=10 jg=array('<li>','</li>')}>
       </ul>
     </div>
     <{/if}>
     <{if $isproducts}>
     <ul class="categories_list clearfix">
          <{function name=leftmenu level=0}>
          <{foreach from=$data item=entry}>
          <li><a href="<{spUrl c=products a=index alias=$entry.alias}>" class="sub_link<{if $entry.categories_id eq $categories_id}> selected<{/if}>"><{if $entry.image neq ''}><img src="<{$smarty.const.WEBDIR}>upload/<{$entry.image}>"/><{/if}> <{$entry.detail.categories_name}></a>
          <{if isset($entry.child)}>         
            <ul class="son"><{call name=leftmenu data=$entry.child level=$level}></ul>
          <{/if}>
          </li>
          <{/foreach}>
          <{/function}>
          <{call name=leftmenu data=$categoriesTop}>
     </ul>
     <div class="sidebar_box">
       <h3>Hot&Sale</h3>
       <ul id="hotsshoes">
          <{Productslist2 c=products a=view cid=$categories_id num=10 order=1 w=100 jg=array('<li>','</li>')}>
       </ul>
     </div>
     <div class="sidebar_box">
       <h3>Recent Comments</h3>
       <ul>
          <{GetCommentList c=products a=view num=10 jg=array('<li>','</li>')}>
       </ul>
     </div>
     <{/if}>
   </div>